<?php
	chong_pha_hoai();
	echo "<div class='title_contain'>";
		echo "CHI TIẾT SẢN PHẨM";
	echo "</div>";
	$id=$_GET['id'];
	$tv="select * from sanpham where (id_sanpham='$id' and isActive=1)";
	$tv_1=mysql_query($tv);
	$tv_2=mysql_fetch_array($tv_1);
	$link_hinh="images/sanpham/".$tv_2['hinh'];
	echo "<table width='100%'>";
		  echo "<tr>";
			echo "<td width='350px'>";
				echo "<img border=0 src='$link_hinh' height='500' width='350'/>";
			echo "</td>";
			echo "<td>";
				echo "Tên sản phẩm: <font color='#FF0000'><b>".$tv_2['ten_sanpham']."</b></font>";
				echo "<hr>";
				echo "Đơn giá: <font color='#FF0000'><b>".number_format($tv_2['dongia_sanpham'])."VNĐ</b></font>";
				echo "<hr>";
				echo "Số lượng tồn kho: ".$tv_2['solg_tonkho'];
				echo "<hr>";
				echo "<form action=''>";
					echo "Số lượng: ";
					echo "<input style='width:50px' value='1' name='solg_nnn'>";
					echo "<br>";
					echo "<div style='overflow:hidden;width:5px;height:3px'></div>";
					echo "<input type='hidden' name='id_sp_nnn' value='$tv_2[id_sanpham]'>";
					echo "<input type='hidden' name='them_vao_gio_nnn' value='them_vao_gio_nnn'>";
					echo "<input type='submit' value='Thêm vào giỏ'>";
				echo "</form>";
			echo "</td>";
		  echo "</tr>";
	echo "</table>";
	echo "<hr>";
	echo "Mô tả: ".$tv_2['mota_sanpham'];
	echo "<hr>";
?>